package com.cr.mrapp.dao;

import com.cr.mrapp.entity.Item;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;

@Repository
public interface ItemDao {
    int deleteByPrimaryKey(Integer itemId);

    int insert(Item record);

    int insertSelective(Item record);

    Item selectByPrimaryKey(Integer itemId);

    int updateByPrimaryKeySelective(Item record);

    int updateByPrimaryKey(Item record);

    List<Object> selectByPage(@Param("offset") int i, @Param("limit") int limit, @Param("itemType") String itemType);

    int selectCount();
}